package org.ISCS.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import org.ISCS.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Component;

/**
* @author mj
* @description 针对表【user】的数据库操作Mapper
* @createDate 2023-05-23 09:26:34
* @Entity org.ISCS.entity.User
*/
@Component
public interface UserMapper extends BaseMapper<User> {
    int insertSelective(User user);

    int deleteByIdAndUsername(@Param("id") Long id, @Param("username") String username);

    int updateNicknameAndEmailById(@Param("nickname") String nickname, @Param("email") String email, @Param("id") Long id);

    List<User> selectNicknameAndUsername();
}




